<!DOCTYPE html>
<html lang="en">
 <include file="Public:head" />
 <body class="page-body" data-url="http://neon.dev">

<div class="page-container"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->
  
  <include file="Public:sidebar-menu" />

  <div class="main-content">
        
 <include file="Public:top_row" />
    
    <hr />
    
          <ol class="breadcrumb bc-3" >
                <li>
            <a href="#"><i class="fa-home"></i>会员系统</a>
          </li>
              <li>
    
                  <a href="">我的账户</a>
              </li>
            <li class="active">
    
                  <strong>提现管理</strong>
              </li>
              </ol>
          
    <h2>提现管理</h2>
    
    <br />
  <div class="panel-heading">
        <div class="panel-title">可提现财富积分<small><code>{$user.cf_jifen}</code></small></div>
        <div class="panel-title">体现说明：<small><code>{$tixian_explain}</code></small></div>
      </div>

    <div class="panel-body">
    
        <form role="form" id="form_tixian" method="post" class="validate" action="__MODULE__/User/tixian">
    
          <div class="form-group">
          <label class="col-sm-3 control-label">提现的财富积分</label>
            <input type="hidden" name="user_id" value="{$Think.session.user.id}">

            <input type="text" id="cf_tixian" class="form-control" name="cf_tixian" data-validate="required,number"  data-message-required="在此处输入提现的财富积分" data-message-number="请输入数字" placeholder="在此处输入提现的财富积分" value="{$tx.cf_tixian}" />
          </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">选择开户行</label>
                
                
                  <select class="form-control" name="bank">
                    <option value="{$tx.bank}">{$tx.bank}</option>
                    <option value="中国工商银行">中国工商银行</option>
                    <option value="中国农业银行">中国农业银行</option>
                    <option value="中国建设银行">中国建设银行</option>
                    <option value="交通银行">交通银行</option>
                    <option value="招商银行">招商银行</option>
                    <option value="中国光大银行">中国光大银行</option>
                    <option value="深圳发展银行">深圳发展银行</option>
                    <option value="青岛银行">青岛银行</option>
                    <option value="中信银行">中信银行</option>
                    <option value="中国民生银行">中国民生银行</option>
                    <option value="广发银行">广发银行</option>
                    <option value="中国银行">中国银行</option>
                    <option value="浦发银行">浦发银行</option>
                    <option value="兴业银行">兴业银行</option>
                    <option value="平安银行">平安银行</option>
                  </select>
              
              </div>

                <div class="form-group">
          <label class="col-sm-3 control-label">银行账号</label>

            <input type="text" id="cf_tixian" class="form-control" name="card_num" data-validate="required,number"  data-message-required="在此处输入银行账号" data-message-number="请输入数字" placeholder="在此处输入银行账号" value="{$tx.card_num}" />
          </div>

          <div class="form-group">
          <label class="col-sm-3 control-label">姓名</label>

            <input type="text" id="truename" class="form-control" name="truename" data-validate="required"  data-message-required="在此处输入姓名"  placeholder="在此处输入姓名" value="{$tx.truename}" />
          </div>
          
          <div class="form-group">
            <button class="btn btn-success" type="submit">申请提现</button>
            
          </div>
    
        </form>
    
      </div>

    
    <table class="table table-bordered datatable" id="table-1">
      <thead>
        <tr>
          <th data-hide="phone">金额</th>
          <th>申请时间</th>
          <th data-hide="phone">状态</th>
          <th data-hide="phone,tablet">审核时间</th>
          <th data-hide="phone,tablet">实际到款金额</th>
          <th data-hide="phone,tablet">提现手续费</th>
          
        </tr>
      </thead>
      <tbody>
      <volist name="lists" id="vo"> 
        <tr class="odd gradeX">
          <td>{$vo.cf_tixian}</td>
          <td>{$vo.add_time|date="y-m-d H:i:s",###}</td>
          <td><eq name="vo.status" value="1">已发放<else/>等待审核</eq></td>
          <td class="center"><eq name="vo.status" value="1"> {$vo.audit_time|date="y-m-d H:i:s",###}<else/>等待审核</eq></td>
          <td>{$vo.final_tixian}</td>
          <td>{$vo.tixian_fee}</td>
        </tr>
        </volist>
      </tbody>
      <tfoot>
        <tr>
          <th>金额</th>
          <th>申请时间</th>
          <th>状态</th>
          <th>审核时间</th>
          <th>实际到款金额</th>
          <th>提现手续费</th>
         
        </tr>
      </tfoot>
    </table>
    
    <script type="text/javascript">
    var responsiveHelper;
    var breakpointDefinition = {
        tablet: 1024,
        phone : 480
    };
    var tableContainer;
    
      jQuery(document).ready(function($)
      {
        tableContainer = $("#table-1");
        
        tableContainer.dataTable({
          "sPaginationType": "bootstrap",
          "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
          "bStateSave": true,
          
    
            // Responsive Settings
            bAutoWidth     : false,
            fnPreDrawCallback: function () {
                // Initialize the responsive datatables helper once.
                if (!responsiveHelper) {
                    responsiveHelper = new ResponsiveDatatablesHelper(tableContainer, breakpointDefinition);
                }
            },
            fnRowCallback  : function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
                responsiveHelper.createExpandIcon(nRow);
            },
            fnDrawCallback : function (oSettings) {
                responsiveHelper.respond();
            }
        });
        
        $(".dataTables_wrapper select").select2({
          minimumResultsForSearch: -1
        });
      });


      document.getElementById("form_tixian").onsubmit = function (e) {  
    var cf_tixian =  document.getElementById("cf_tixian").value;
 
    var tixian={$user.cf_jifen};
    if (cf_tixian>tixian) {
      alert("超出提现的范围"); 
             e.preventDefault(); }
        } 
    </script>
    
    <br />
<include file="Public:footer" />
  </div>

    


  
</div>





  <!-- Imported styles on this page -->
  <link rel="stylesheet" href="__PUBLIC__/assets/js/datatables/responsive/css/datatables.responsive.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/js/select2/select2-bootstrap.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/js/select2/select2.css">

  <!-- Bottom scripts (common) -->
  <script src="__PUBLIC__/assets/js/gsap/main-gsap.js"></script>
  <script src="__PUBLIC__/assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
  <script src="__PUBLIC__/assets/js/bootstrap.js"></script>
  <script src="__PUBLIC__/assets/js/joinable.js"></script>
  <script src="__PUBLIC__/assets/js/resizeable.js"></script>
  <script src="__PUBLIC__/assets/js/neon-api.js"></script>
  <script src="__PUBLIC__/assets/js/jquery.dataTables.min.js"></script>
  <script src="__PUBLIC__/assets/js/datatables/TableTools.min.js"></script>


  <!-- Imported scripts on this page -->
  <script src="__PUBLIC__/assets/js/dataTables.bootstrap.js"></script>
  <script src="__PUBLIC__/assets/js/datatables/jquery.dataTables.columnFilter.js"></script>
  <script src="__PUBLIC__/assets/js/datatables/lodash.min.js"></script>
  <script src="__PUBLIC__/assets/js/datatables/responsive/js/datatables.responsive.js"></script>
  <script src="__PUBLIC__/assets/js/select2/select2.min.js"></script>
  <script src="__PUBLIC__/assets/js/neon-chat.js"></script>
   <script src="__PUBLIC__/assets/js/jquery.validate.min.js"></script>
 <script src="__PUBLIC__/Common/layer/layer.js"></script>

  <!-- JavaScripts initializations and stuff -->
  <script src="__PUBLIC__/assets/js/neon-custom.js"></script>


  <!-- Demo Settings -->
  <script src="__PUBLIC__/assets/js/neon-demo.js"></script>

</body>
</html>